(rmail-make-summary-line): Find end of msg number to update deleted flag.
authorRichard M. Stallman <rms@gnu.org>
Thu, 2 Aug 2007 17:56:10 +0000 (17:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 2 Aug 2007 17:56:10 +0000 (17:56 +0000)
lisp/mail/rmailsum.el

index 85527e59f673dd121cd2e2501f7e668d90e07c37..fd5931fdef9ab6f84bb7db1196c892830756fd4c 100644 (file)
@@ -288,12 +288,14 @@ nil for FUNCTION means all messages."
                    (if (zerop (% rmail-new-summary-line-count 10))
                        (message "Computing summary lines...%d"
                                 rmail-new-summary-line-count))
-                   (rmail-make-summary-line-1 msg)))))
+                   (rmail-make-summary-line-1 msg))))
+       delpos)
     ;; Fix up the part of the summary that says "deleted" or "unseen".
-    (aset line 5
-         (if (rmail-message-deleted-p msg) ?\D
+    (string-match "[0-9]+" line)
+    (aset line (match-end 0)
+         (if (rmail-message-deleted-p msg) ?D
            (if (= ?0 (char-after (+ 3 (rmail-msgbeg msg))))
-               ?\- ?\ )))
+               ?- ?\s)))
     line))
 
 ;;;###autoload